import { useContext } from 'react';
import { MsgContext } from './App';


export default function Son2 (props) {
  const msgContext = useContext(MsgContext)

  console.log(msgContext)
  return (
    <div>
      {msgContext}
      son2 {props.sonData}
    </div>
  )
}